class ClickDisabledRT extends Laya.Image {
    private timeout = 500;

    constructor() {
        super();
        this.on(Laya.Event.CLICK, this, this.onClick);
    }

    onClick() : void {
        this.disabled = true;
        Laya.timer.once(this.timeout,this,this.changeEnabled);
    }

    changeEnabled() : void {
        this.disabled = false;
    }
}